<?php
require('common_view_functions.php');

function showEmoIcon($icon) {
	if($icon == 'BB0') {
		return 'BB0.png';
	} else {
		return 'bbx/' . $icon . '.gif';
	}
}

foreach($emoTags as $et) {
?>
<div class="emoTag">
	<dl>
		<dt><img alt="" src="<?php echo(base_url() . 'img/' . showEmoIcon($et->emo_icon)); ?>" /></dt>
		<dd class="time"><?php echo($et->post_time); ?>，<span class="user">我</span></dd>
		<dd class="text"><?php echo(htmlspec($et->emo_text)); ?></dd>
	</dl>
	<div class="z"></div>
	<?php if($show_delete_icon) { ?>
	<div class="del_emotag_wrpr"><a href="javascript:;" rel="<?php echo($et->id); ?>" title="删除"><img alt="Delete" src="/img/delete.png" border="0" /></a></div>
	<?php } ?>
</div>
<?php
}
?>
<input type="hidden" id="hidEmoTagPaging" value="<?php echo($prev_string . '|' . $paging_info . '|' . $next_string); ?>" />
